package com.ejustcn.js;

import java.util.List;

import com.vaadin.server.DeploymentConfiguration;
import com.vaadin.server.RequestHandler;
import com.vaadin.server.ServiceException;
import com.vaadin.server.VaadinServlet;
import com.vaadin.server.VaadinServletService;

public class StaticJsFileService extends VaadinServletService {

	public StaticJsFileService(VaadinServlet servlet,
			DeploymentConfiguration deploymentConfiguration)
			throws ServiceException {
		super(servlet, deploymentConfiguration);
	}

	/* (non-Javadoc)
	 * @see com.vaadin.server.VaadinServletService#createRequestHandlers()
	 */
	@Override
	protected List<RequestHandler> createRequestHandlers()
			throws ServiceException {
		List<RequestHandler> handlers = super.createRequestHandlers();
		
		         handlers.add(new StaticJsFileHandler());
		
		         return handlers;

	}

}
